<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <input type="hidden" name="config_id" class="layui-input" lay-verify="required" placeholder="请输入配置" value="{$Request.param.config_id}" />

        <div class="layui-form-item">
            <label class="layui-form-label">协议</label>
            <div class="layui-input-block">
                {foreach $select_list_protocol as $k=>$v}
                <input type="radio" name="protocol" value="{$k}" title="{$v}" {in name="k" value="tcp" }checked="" {/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">监听IP</label>
            <div class="layui-input-block">
                <input type="text" name="listen_ip" class="layui-input" lay-verify="required" placeholder="请输入监听IP" value="0.0.0.0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">端口</label>
            <div class="layui-input-block">
                <input type="text" name="listen_port" class="layui-input" lay-verify="required" placeholder="请输入端口" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">监听类型</label>
            <div class="layui-input-block">
                {foreach $select_list_listen_type as $k=>$v}
                <input type="radio" name="listen_type" value="{$k}" title="{$v}" {eq name='k' value='range'}disabled=""{/eq}  {in name="k" value="port" }checked="" {/in}>
                {/foreach}
                <div>
                    <tip>端口：监听一个端口</tip><br>
                    <tip>端口范围：监听一个端口范围，使用英文冒号分割，比如：3000:3100。如果需要监听端口范围，请请尽量使用“假端口范围”</tip><br>
                    <tip>假端口范围：使用英文冒号分割，比如：3000:3100。但实际上只监听范围中第一个端口，剩下的需要使用iptables转发。面板会生成转发命令以供参考。</tip>
                </div>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>